
import 'package:flutter_deer/generated/json/football_ratio_entity.g.dart';
import 'package:flutter_deer/generated/json/base/json_field.dart';

@JsonSerializable()
class FootballRatioGroupEntity {

  FootballRatioGroupEntity();

  factory FootballRatioGroupEntity.fromJson(Map<String, dynamic> json) => $FootballRatioGroupEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballRatioGroupEntityToJson(this);

  String? groupId;
  String? title;
  int? endBetting;
  List<FootballRatioEntity>? ratios;
  double? groupRatio;
  FootballGameUnstartEntity? guessBallNum;
}

@JsonSerializable()
class FootballRatioEntity {

  FootballRatioEntity();

  factory FootballRatioEntity.fromJson(Map<String, dynamic> json) => $FootballRatioEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballRatioEntityToJson(this);

  String? id;
  String? gameId;
  String? gameName;
  String? title;
  String? playWay;
  String? score;
  String? outcome;
  String? outcomeName;
  String? bettingType;
  double? odds;
  FootballGameEntity? game;
}

@JsonSerializable()
class FootballGameUnstartEntity {

  FootballGameUnstartEntity();

  factory FootballGameUnstartEntity.fromJson(Map<String, dynamic> json) =>
      $FootballGameUnstartEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballGameUnstartEntityToJson(this);

  String? id;
  String? specialId;
  String? name;
  String? footballTeamOne;
  String? footballTeamTwo;
  String? playTime;
  String? playDate;
  FootballTeamEntity? teamOne;
  FootballTeamEntity? teamTwo;
  FootballGameRatioEntity? ratio;
  int? endBetting;
}

@JsonSerializable()
class FootballGameEntity {

  FootballGameEntity();

  factory FootballGameEntity.fromJson(Map<String, dynamic> json) =>
      $FootballGameEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballGameEntityToJson(this);

  String? id;
  String? specialId;
  String? name;
  String? footballTeamOne;
  String? footballTeamTwo;
  String? playTime;
  String? playDate;
  FootballTeamEntity? teamOne;
  FootballTeamEntity? teamTwo;
  List<FootballGameRatioEntity>? ratios;
}

@JsonSerializable()
class FootballTeamEntity {

  FootballTeamEntity();

  factory FootballTeamEntity.fromJson(Map<String, dynamic> json) =>
      $FootballTeamEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballTeamEntityToJson(this);

  String? id;
  String? name;
  String? image;
  String? remark;

}

@JsonSerializable()
class FootballGameRatioEntity {

  FootballGameRatioEntity();

  factory FootballGameRatioEntity.fromJson(Map<String, dynamic> json) =>
      $FootballGameRatioEntityFromJson(json);

  Map<String, dynamic> toJson() => $FootballGameRatioEntityToJson(this);

  String? id;
  String? gameId;
  String? playWay;
  String? score;
  String? outcome;
  String? bettingType;
  double? odds;
  double? minBallNum;
  double? maxBallNum;
}

